import React from 'react';
import data from '../TestData.json'
import { connect } from 'dva';

import styles from './CategoryPage.scss'

const CategoryPage = ({title}) => {
    console.log('分类...',data,process.env.NODE_ENV,process.env.VERSION);
    return (
        <div className={styles.root}>
            <div className={styles.rootTitle}>{title}</div>
            {data.greeter.text}
            <div className={styles.foot}>aaa</div>
        </div>
    )
};

const mapStateToProps = (state) => {
    console.log('state...',state)
    return state.category;
};

export default connect(mapStateToProps)(CategoryPage);
